import React, { PureComponent } from 'react';
import {  Col, Row } from 'antd'
import styles from './index.less';
import imgs from '@/assets/index';
import { history } from 'umi';
import Authorized from '@/components/Authorized/Authorized'
class DashboardRight extends PureComponent {
    render() {
        const is_sw = JSON.parse(localStorage.getItem('userinfo')||'{}').is_sw;
        return (
            <React.Fragment>
            <div className={styles['quick-title']}>
                <img src={imgs.quick} alt=" " />常用功能
            </div>
            <Row gutter={10} style={{paddingBottom:40}}>
              
                <Col span={12} onClick={()=>history.push(is_sw===1?'/peopleManagement/tzPeoples/:tab':'/peopleManagement/peoples/:tab')}>
                    <div className={styles['dashboard-right-entry']}>
                        <img src={imgs.xueyuan} alt=" " />
                    </div>
                </Col>
                <Col span={12}  onClick={()=>history.push('/peopleManagement/unitStructure')}>
                    <div className={styles['dashboard-right-entry']}>
                        <img src={imgs.bumen} alt=" " />
                    </div>
                </Col>
                <Col span={12} onClick={()=>history.push('/analyze/examAnalyze')}>
                    <div className={styles['dashboard-right-entry']}>
                        <img src={imgs.chengji} alt=" " />
                    </div>
                </Col>
                <Authorized authority={[702]}>
                <Col span={12} onClick={()=>history.push('/setting/record')}>
                    <div className={styles['dashboard-right-entry']}>
                        <img src={imgs.xitong} alt=" " />
                    </div>
                </Col>
                    </Authorized>
             
            </Row>
        </React.Fragment>
        );
    }
}

export default DashboardRight;
